package com.sgcc.nfc.lock.domain.usecase

import com.sgcc.nfc.lock.core.network.NetworkResult
import com.sgcc.nfc.lock.domain.model.NfcOperationParams
import com.sgcc.nfc.lock.domain.repository.NfcRepository
import javax.inject.Inject

class CloseLockUseCase @Inject constructor(
    private val repository: NfcRepository
) {
    suspend operator fun invoke(params: NfcOperationParams): NetworkResult<Unit> =
        repository.closeLock(params)
}
